package org.jeecg.modules.quartz.service.impl;

import java.util.List;

import org.jeecg.modules.quartz.entity.SysJobQueue;
import org.jeecg.modules.quartz.mapper.SysJobQueueMapper;
import org.jeecg.modules.quartz.service.ISysJobQueueService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 任务队列表
 * @Author: jeecg-boot
 * @Date:   2021-04-08
 * @Version: V1.0
 */
@Service
public class SysJobQueueServiceImpl extends ServiceImpl<SysJobQueueMapper, SysJobQueue> implements ISysJobQueueService {

	@Override
	public List<SysJobQueue> getByCode(String code) {
		return this.lambdaQuery().eq(SysJobQueue::getQueueCode, code).list();
	}

	@Override
	public boolean deleteByCode(String code) {
		return this.lambdaUpdate().eq(SysJobQueue::getQueueCode, code).remove();
	}

}
